package com.powernode.crm.activity.service;

import com.powernode.crm.activity.model.Activity;

import java.util.List;

public interface ActivityService {

    /*id获取*/
    Activity queryById(String id);

    /*分页查询*/
    List<Activity> queryPage(String name,String owner,String startDate,String endDate,Integer pageNum,Integer pageSize);


    /*总行数*/
    Integer queryListCount(String name,String owner,String startDate,String endDate);

    int addActivity(Activity activity);

    int modifyActivity(Activity activity);

    int removeActivity(String[] ids);

    int saveActivityList(List<Activity> activities);

    List<Activity> queryAll();

    List<Activity> queryByIds(String[] ids);

    List<Activity> queryByName(String name);

    int queryCount(String owner, String activityName, String customerName, String stage, String type, String source, String contactsFullName);


}
